<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>jsReturn的研究</title>
    <script src="../zujian/han/han.js"></script>
</head>
<body>
<script type="text/javascript">
    var k=[1,2,3,4,5]
    for(var i=0;i<k.length;i++){
        if(i===3){
            hwrite(k[i]);
            //这里不能用return;
            // return;
            break;//跳出当前循环//但是后面的还是会执行
        }
        //只执行0,1,2
        hwrite(k[i]);
    }
    //会执行
    hwrite("fuck");
</script>

</body>
</html>